package pojo;


import java.util.List;

public class Page {
    private int currentPageNo;
    private int pageSize;
    private int totalPageCount;
    private int totalCount;
    private int shu;
    private List list;

    public void setTotalCount(int totalCount) {
        this.totalCount = totalCount;
        this.totalPageCount=this.totalCount%this.pageSize == 0 ?
                this.totalCount/this.pageSize:
                this.totalCount/this.pageSize+1;
    }

    public int getShu() {
//        this.shu = this.getPageSize()*(this.getCurrentPageNo()-1);
        return shu;
    }

    public int getCurrentPageNo() {
        return currentPageNo;
    }

    public void setCurrentPageNo(int currentPageNo) {
        this.currentPageNo = currentPageNo;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getTotalPageCount() {
        return totalPageCount;
    }

    public void setTotalPageCount(int totalPageCount) {
        this.totalPageCount = totalPageCount;
    }

    public int getTotalCount() {
        return totalCount;
    }

    public void setShu(int shu) {
        this.shu = shu;
    }

    public List getList() {
        return list;
    }

    public void setList(List list) {
        this.list = list;
    }
}
